<template>
    <div>
        <el-form class="viewForm" label-width="80px">
                                <el-col :span="22">
                        <el-form-item label="标识">
                            <div v-html="viewModel.key"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="22">
                        <el-form-item label="广告位">
                            <div v-html="viewModel.name"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="22">
                        <el-form-item label="宽度">
                            <div v-html="viewModel.width"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="22">
                        <el-form-item label="高度">
                            <div v-html="viewModel.height"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="22">
                        <el-form-item label="备注">
                            <div v-html="viewModel.note"></div>
                        </el-form-item>
                    </el-col>
        </el-form>
    </div>
</template>

<script>
    import common from "@/mixins/common.js";

    export default {
        name: "adPosition_view",
        mixins: [common],
        data() {
            return {
                viewModel: {},
                activeIndex: "1"
            }
        },
        async mounted() {
            let id = this.$route.query.id;
            let data = {};
            data.id = id;
            let res = await this.$http.form("/adPosition/view", data);
            if (res.code === 200) {
                this.viewModel = res.data;
            }
        }
    }
</script>

<style scoped>

</style>